package com.ssy.lingxi.logistics.model.request;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 物流单请求实体
 * @author yzc
 * @version 2.0.0
 * @date 2020/7/20
 */
@Data
public class LogisticsOrderConfirmRequest implements Serializable {

    private static final long serialVersionUID = 7320089915059250095L;

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空")
    private Long id;

    /**
     * 外部状态 1-待提交 2-待确认 3-不接受物流单 4-接受物流单
     */
    @NotNull(message = "外部状态不能为空")
    private Integer status;

    /**
     * 运费
     */
    @PositiveOrZero(message = "运费范围为0以上")
    private BigDecimal freightPrice;

    /**
     * 是否含税 0-否 1-是
     */
    @NotNull(message = "是否含税不能为空")
    private Integer taxInclusive;

    /**
     * 税率(小数, 50% = 0.50)
     */
    @PositiveOrZero(message = "税率范围为0以上")
    private Double taxRate;

    /**
     * 审核意见
     */
    private String remark;

}
